I think everyone is familiar with the term "com". In addition, I enjoy the unlimited convenience it brings to us every day. However, we recently want to use DirectShow for a remote monitoring module. However, we all know that DirectX is built on the basis of COM, and DirectShow is everywhere. Although, msdn said that it is necessary to master too much com knowled
How to share a data layer interface in COM +: Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiNetwork/html/delphi_20061216191901110.html
In COM + development, I want to build a common data service layer component consisting of a data access control such as mtsdatamodule and ADO. Each Business Object interacts with the database through it. However, when a
). After reading this article, you will be able to learn how to use the built-in components in the Windows operating system and the COM objects provided by third parties.This document assumes that you are proficient in the C ++ language. In the example code, we use a bit of MFC and ATL. If you are not familiar with MFC and ATL, this article will thoroughly explain these codes. This article includes the following parts:
share binary code across applications and languages . Unlike C + +, it advocates reuse of source code. ATL is a good example. Source-level reuse is good, but only for C + +. It also brings the possibility of name collisions, not to mention the constant duplication of code reuse that results in engineering bloat and bloat.Windows uses DLLs to share code at the binary level. This is also the key to the opera
operating system and the COM objects provided by third parties.
This article assumes that you are proficient in C + + language. MFC and ATL are used in the example code, and if you are unfamiliar with MFC and ATL, this article will explain the code in a complete and thorough light.
This article includes the following sections:
What the hell is com--? --com Th
1, COM +
Because of historical reasons, COM, DCOM and MTS are not very harmonious with each other, it is difficult to form a unified whole. COM + has effectively unified these three, forming a new, powerful component architecture.
COM + is not a new version of COM, but a n
COM objects are encapsulated entities that provide services to users. This should be similar to the Class Object in C ++. But sometimes the COM object is treated as the class that provides services. The COM Object also encapsulates the data and provides interfaces. But there are some differences with the class. The data in the class can be declared as public, and
program can normally call the function in the DLL. This information is also the function export information. There are many ways to generate the exported information. You can use define XXX extern "C" _ declspec (dllexport) to generate the information. For details about this method, see Windows core programming (fifth edition) ), but the COM component generally does not use this method. Another method is to write the def file and clearly specify the
This article provides a programming guide to the programmers who just contacted COM, explaining the inside of the COM server and how to write your own interface in C + +.
Following the introduction of previous COM programming, this article discusses the content of COM servers, explains the steps and knowledge needed t
Difference Author: Sunwen translation
All the best programmers do their best to make their written programs more reusable, because it allows you to quickly write more robust and scalable programs.
There are two choices to make code reusable:
1. White box: The simplest one is to copy your program to another file.
2. Black box: It involves connecting a compiled piece of the program. So the compiled black box class library that the client can invoke is called a component.
. NET also provides dev
Part of this section requires the reader to be familiar with the message invocation principle of COM, and the principle of this is as shown in Mr. Yang's column.
Previous content:
COM Server--> COM client
...
COM server-->. NET Client
1, P/invoke
2, COM Interop (conten
This digest from: http://www.job168.com/info/read_100394.htmlMany of Microsoft's technologies, such as OLE, ActiveX, and DirectX, are built on COM technology. Microsoft itself also uses a lot of COM components to customize their applications and operating systems. So, what is COM?The so-called
1, the object-oriented system of the three most basic characteristics
Encapsulation, polymorphism, reusability.
2, COM characteristics of the overview
The encapsulation characteristics of COM objects are very thorough, all object state information must be accessible through an interface, while COM polymorphism is fully represented by the interface, and
, developers compile the function library into an independent binary file, and each executable file can be dynamically linked to those binary files. In this way, several executable programs can share the same binary library file, that is, the dynamic link library.(DLL). To modify a utility, you only need to re-releaseDLLInstead of re-Compiling and releasing all executable files that call functions.
Although DLL It is very convenient and
+ activates the object in a new environment. Because an object may inherit or not inherit the creator's environment, the object may also share or not share the creator's transaction.? does not support (not supported) An instance of a component will never participate in a transaction when the transaction support property of the component is set to not supported. This setting is designed for
1. DCOM
The process transparency of COM is manifested in the Component object and client program can have their own process space, can also share the same process space, COM is responsible for the customer's call to the Component object correctly, and ensure the correctness of the parameters passed. Component objects and client code do not need to consider the d
Iv. com, Ole, ActiveX, and COM +
Many of Microsoft's technologies, such as Ole, ActiveX, and DirectX, are built based on the COM technology. Microsoft also uses a large number of COM components to customize their applications.ProgramAnd the operating system. So what is com
Yesterday saw the first chapter of "com Essence", "com is a better C + +", feel it is necessary to do some notes, so organized into this article, I believe you deserve to have.The main content of this article is: A class faststring that implements the fast lookup function, which slowly evolves into a COM component after a small requirement. Class Faststring imple
1, the implementation of COM and operating system platform is closely related
Because COM originated in the Microsoft Windows platform, the COM implementation part (that is, the COM library) uses some of the features of the Windows system directly, such as the system registry, the dynamic Connection library, and so on
Just now I went online and found another beautiful article with all the images. That's great...
What theoretical knowledge of COM must be mastered when using VC for COM programming?
I have seen a lot of people learn about com. After reading a book, I feel that I have a better understanding of the principles of COM, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.